<?php

namespace Drupal\shusy_product_commission\ViewsController\handler\field;

use Drupal\shusy_product_commission\ViewsController\Traits\ShusyProductCommissionStatusTrait;
use views_handler_field;

class ShusyProductCommissionStatusViewsField extends views_handler_field {

  use ShusyProductCommissionStatusTrait;

  public function render($values) {
    $value = $this->get_value($values);
    $options = $this->getStatusOptions();
    return isset($options[$value]) ? $options[$value] : '';
  }
}
